/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.dialog.add( 'footnote', function( editor )
{
	return {
		title : 'Footnote',
		minWidth : 360,
		minHeight : 320,
		onLoad : function()
		{
			/*user defined function*/
			// #3808
			if ( CKEDITOR.env.ie7Compat )
				dialog.parts.contents.setStyle( 'overflow', 'hidden' );
		},
		contents: [
		    {
			   id: 'page1',  /* not CSS ID attribute! */
			   label: 'Page1',
			   accessKey: 'P',
			   elements:[
        	       {
        	        	id : 'hb1',
        	        	type : 'hbox',
        	        	widths : [ '100px', '100px', '100px' ],
        	        	children :
        	        	[
        	        	 	{
        	        	 		type: 'html',
        	        	 		html: '<div>Cell1</div>'
        	        	 	},
        	        	 	{
        	        	 		type: 'html',
        	        	 		html: '<div>Cell2</div>'
        	        	 	},
        	        	 	{
        	        	 		type: 'vbox',
        	        	 		children:
        	        	 		[
        	        	 		 	{
        	        	 		 		type:'html',
        	        	 		 		html:'<div>Cell3</div>'
        	        	 		 	},
        	        	 		 	{
        	        	 		 		type:'html',
        	        	 		 		html:'<div>Cell4</div>'
        	        	 		 	}
        	        	 		]
        	        	 	}
        	        	 ]
		           }
        	       ]
	        },
		    {
		    	id: 'page2', /* not CSS ID attribute! */
		    	label: 'page2',
		    	accessKey: 'Q',
		    	elements: [/* user defined*/]
		    }
       ],        	       
		buttons: [{
		    type:'button',
		    id:'DialogBtn', /* note: this is not the CSS ID attribute! */
		    label: 'LYSbtn',
		    onClick: function(){
		       //action on clicking the button
			   //user defined action
		    }
		},CKEDITOR.dialog.okButton, CKEDITOR.dialog.cancelButton]
	};
} );
